import request from '@/utils/request'
export const getCardListAPI = (params) => {
  return request({
    url: '/parking/card/list',
    params
  })
}
export const addCardApi = (params) => {
  return request({
    url: '/parking/card',
    method: 'post',
    data: params
  })
}
export const quertyCardInfo = (id) => {
  return request({
    url: `/parking/card/${id}`
  })
}
export const editCarApi = (data) => {
  return request({
    url: '/parking/card/edit',
    method: 'put',
    data,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
export const delCard = (id) => {
  return request({
    url: `/parking/card/${id}`,
    method: 'delete'
  })
}
export const getDetailCard = (id) => {
  return request({
    url: `/parking/card/${id}`,
    method: 'get'
  })
}
export const getJiFeilist = (data) => {
  return request({
    url: '/parking/rule/list',
    method: 'get',
    params: data
  })
}
